package cn.edu.zut.soft.student.model;

import java.util.Date;

public class Student {
    private String studentid;

    private String password;

    private String studentname;

    private String studentclassid;

    private String sex;

    private Date birthday;

    private String telephone;

    private String email;

    private String address;

    public Student(){}

    public Student(Object[] values) {
        this.studentid = values[0].toString();
        this.password = values[1].toString();
        this.studentname = values[2].toString();
        this.studentclassid = values[3].toString();
        this.sex = values[4].toString();
        this.birthday = (Date) values[5];
        this.telephone = values[6].toString();
        this.email = values[7].toString();
        this.address = values[8].toString();
    }

    public String getStudentid() {
        return studentid;
    }

    public void setStudentid(String studentid) {
        this.studentid = studentid == null ? null : studentid.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getStudentname() {
        return studentname;
    }

    public void setStudentname(String studentname) {
        this.studentname = studentname == null ? null : studentname.trim();
    }

    public String getStudentclassid() {
        return studentclassid;
    }

    public void setStudentclassid(String studentclassid) {
        this.studentclassid = studentclassid == null ? null : studentclassid.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone == null ? null : telephone.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }
}